﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Quizz.DataRepository.Models;

namespace Quizz.Service.Services
{
    public class SubjectService : QuizzDomainService<QuizzDataContext>
    {
        public Subject GetById(long id)
        {
            return DataContext.Subjects.FirstOrDefault(s => s.Id == id);
        }

        public IList<Subject> GetAll()
        {
            return DataContext.Subjects.ToList();
        }
    }
}
